package is.xdumper.type;

import is.bean.entity.department.Department;
import is.bean.entity.employee.Employee;
import is.bean.entity.region.Region;
import java.io.Serializable;
import java.util.Set;

/**
 *
 * @author aspr0
 */
public class Dump implements Serializable
{
    /**
     * Whether to dump item references on doDump()
     */
    private boolean dumpReferences;
    /**
     * Entity selected by user for dump
     */
    private Entity majorEntity;
    private Set<Department> departmentTable;
    private Set<Employee> employeeTable;
    private Set<Region> regionTable;

    public boolean getDumpReferences()
    {
        return dumpReferences;
    }

    public void setDumpReferences(boolean dumpReferences)
    {
        this.dumpReferences = dumpReferences;
    }

    public Entity getMajorEntity()
    {
        if (majorEntity == null)
        {
            throw new RuntimeException("Set majorEntity in Dump");
        }

        return majorEntity;
    }

    public void setMajorEntity(Entity majorEntity)
    {
        this.majorEntity = majorEntity;
    }

    public Set<Department> getDepartmentTable()
    {
        return departmentTable;
    }

    public void setDepartmentTable(Set<Department> departmentTable)
    {
        this.departmentTable = departmentTable;
    }

    public Set<Employee> getEmployeeTable()
    {
        return employeeTable;
    }

    public void setEmployeeTable(Set<Employee> employeeTable)
    {
        this.employeeTable = employeeTable;
    }

    public Set<Region> getRegionTable()
    {
        return regionTable;
    }

    public void setRegionTable(Set<Region> regionTable)
    {
        this.regionTable = regionTable;
    }
}
